import LCData from "../MD/GMDWeakNetGameBase/LCData";
import DbgUI from "../MD/GMDDebug/DbgUI";
import { FunBarDocker } from "../MD/GMDDebug/DebugUI/FunBarDocker";


class _WndDebug {

    static open: boolean = true;


    public Go() {
        var bar = DbgUI.FunBar
        bar.SetDocker(FunBarDocker.LeftRight)//设定可停靠的位置

        bar.AddButton(
            {
                color: "#d98a00",//16进制表示的颜色，例如  FF0000 表示红色 R G B 顺序
                txt: "金币10000",//按钮上的文本
                targetClass: this,
                func: this.clickGold
            }
        )      
    }
 
     //获得金币
    clickGold() {
        //处理金币增加的作弊逻辑
        console.log("WndDebug","clickGold")
    }

    //清档
    clear() {
        LCData.ClearData();
    } 

}


var WndDebug = new _WndDebug
export { WndDebug }